package com.redhipps.hips.client.model;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ScheduleBlock extends Model {

  @Persistent(serialized = "true")
  private DateTime startTime;

  @Persistent
  private int durationMinutes;

  public ScheduleBlock() {}

  @Deprecated
  public ScheduleBlock(PythonDatastoreKey key) {
    super(key);
  }

  public DateTime getStartTime() {
    return startTime;
  }

  public void setStartTime(DateTime startTime) {
    this.startTime = startTime;
  }

  public int getDurationMinutes() {
    return durationMinutes;
  }

  public void setDurationMinutes(int durationMinutes) {
    this.durationMinutes = durationMinutes;
  }

}
